package com.cly.common.entity.item.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TimingItem implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Long id;
    private String itemName; // 商品名称
    private Integer price; // 价格
    private Integer stock; // 库存
    private String imageUrl;// 图片地址
    private Long categoryId; // 分类id
    private Integer sold; // 售出数量
    // 商品状态，0-未发布，1-在售，2-下架，3-删除
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    private LocalDateTime executionTime; // 执行时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    private LocalDateTime endTime; // 结束时间

}
